Two Algorithms for Finding $k$ Shortest Paths of a Weighted Pushdown Automaton

نویسندگان

  • Ke Wu
  • Philip Resnik
چکیده

Weighted pushdown automata (WPDAs) have recently been adopted in some applications such as machine translation [Iglesias et al., 2011] as a more compact alternative to weighted finite-state automata (WFSAs) for representing a weighted set of strings. Allauzen and Riley [2012] introduce a set of basic algorithms for construction and inference of WPDAs, and the corresponding implementation as an extension of the open source finite-state transducer toolkit OpenFst.1 Although a shortest-path algorithm for WPDAs with bounded stack is described in Allauzen and Riley [2012], it does not give a k-shortest-path algorithm, which finds the k shortest accepting paths of the given automaton. Other than just the single shortest path, k shortest paths are useful for many purposes such as reranking the output in parsing [Collins and Koo, 2005] or tuning feature weights in machine translation [Chiang et al., 2009]. One existing work-around is to first expand the WPDA into an equivalent WFSA and then find the k shortest paths of the WFSA using the k-shortest-path algorithm for WFSAs (the expansion approach). Since the WPDA expansion has an exponential time and space complexity with respect to the size of the automaton, one usually has to prune the WPDA before expansion (the pruned expansion approach), i.e. remove those transitions and states that are not on any accepting path with a weight at most a given threshold greater than the shortest distance. However, setting an adequate threshold that neither prunes nor keeps too many states or transitions a priori is almost impossible in practice. In this paper, we introduce two efficient algorithms for finding the k shortest paths of a WPDA, both derived from the same weighted deductive logic description of the execution of a WPDA using different search strategies.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Longest Paths in Planar DAGs in Unambiguous Logspace

We present a transformation from longest paths to shortest paths in sub-classes of directed acyclic graphs (DAGs). The transformation needs log-space and oracle access to reachability in the same class of graphs. As a corollary, we obtain our main result: Longest Paths in planar DAGs is in UL ∩ co-UL. The result also extends to toroidal DAGs. Further, we show that Longest Paths in max-unique DA...

متن کامل

An efficient algorithm for the n-best-strings problem

We present an efficient algorithm for solving the n-best-strings problem in a weighted automaton. This problem arises commonly in speech recognition applications when a ranked list of unique recognizer hypotheses is desired. We believe this is the first n-best algorithm to remove redundant hypotheses before rather than after the n-best determination. We give a detailed description of the algori...

متن کامل

Two optimal algorithms for finding bi-directional shortest path design problem in a block layout

In this paper, Shortest Path Design Problem (SPDP) in which the path is incident to all cells is considered. The bi-directional path is one of the known types of configuration of networks for Automated Guided Vehi-cles (AGV).To solve this problem, two algorithms are developed. For each algorithm an Integer Linear Pro-gramming (ILP) is determined. The objective functions of both algorithms are t...

متن کامل

K⁎: A heuristic search algorithm for finding the k shortest paths

We present a directed search algorithm, called K∗, for finding the k shortest paths between a designated pair of vertices in a given directed weighted graph. K∗ has two advantages compared to current k-shortest-paths algorithms. First, K∗ operates on-the-fly, which means that it does not require the graph to be explicitly available and stored in main memory. Portions of the graph will be genera...

متن کامل

On the K-simple shortest paths problem in weighted directed graphs

We obtain the first approximation algorithm for finding the k-simple shortest paths connecting a pair of vertices in a weighted directed graph. Our algorithm is deterministic and has a running time of O(k(m √ n + n log n)), where m is the number of edges in the graph and n is the number of vertices. Let s, t ∈ V ; the length of the i-th simple path from s to t computed by our algorithm is at mo...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1212.0927  شماره 

صفحات  -

تاریخ انتشار 2012